<?php


namespace app\admin\model;


class ProductInfoModel extends BaseModel
{

    protected $name='product_info';

    public static function updateDateByPartid($part_id,$data){
        $update=[
            'should_num'=>$data['should_num'],
            'actual_num'=>$data['actual_num'],
            'check_num'=>$data['check_num'],
            'return_num'=>$data['return_num'],
            'replenishment_num'=>$data['replenishment_num'],
        ];
        return self::where(['id',$part_id])->update($update);
    }


}